package com.ruizhong.centercontroll.service;

import com.baomidou.mybatisplus.extension.service.IService;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.ruizhong.centercontroll.entity.TSwitch;


import javax.websocket.EncodeException;
import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface TSwitchService extends IService<TSwitch> {

    void saveNewSwitchList(List<Map<String, Object>> switchList, Integer pageId, boolean isNew);

    List<TSwitch> getSwitchsByPageId(Integer pageId, Double pageWidth, Double pageHeight, Double aimPageWidth, Double aimPageHeight, Boolean display) throws JsonProcessingException;

    void deleteSwitchByPageId(Integer pageId);

    List<TSwitch> getSwitchIdsByPageId(Integer pageId);

    void executeCommand(Map<String, Object> conditionMap, String ip) throws EncodeException, IOException;
}
